package com.fanxuankai.boot.plumelog.autoconfigure;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author fanxuankai
 */
@ConfigurationProperties(prefix = PlumeLogProperties.PREFIX)
public class PlumeLogProperties {
    public static final String PREFIX = "fxk.plume-log";
    public static final String TRACE = PREFIX + ".trace";
    public static final String START = PREFIX + ".start";
    public static final String ENABLED = PREFIX + ".enabled";
    /**
     * 是否开启
     */
    private boolean enabled = true;
    /**
     * 链路追踪切入表达式
     */
    private String trace;
    /**
     * 链路起点切入表达式
     */
    private String start;

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getTrace() {
        return trace;
    }

    public void setTrace(String trace) {
        this.trace = trace;
    }

    public String getStart() {
        return start;
    }

    public void setStart(String start) {
        this.start = start;
    }
}
